﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace PinCity.Controllers
{
    public abstract class BaseController : Controller
    {
        /// <summary>
        /// Displays a view, that informs user about
        /// unexisting page.
        /// </summary>
        /// <param name="message">An additional message, that will be displayed.</param>
        /// <returns></returns>
        protected ActionResult Error404(string message)
        {
            return View("404", message as object);
        }

        /// <summary>
        /// Displays a view, that informs user
        /// about unreachable page, because of insufficient rights.
        /// </summary>
        /// <param name="message">An additional message, that will be displayed.</param>
        /// <returns></returns>
        protected ActionResult Error403(string message)
        {
            return View("403", message as object);
        }


    }
}
